Câu ví dụ
- thêm câu ví dụ: 1 2 3 4 5 6 7 8
- Do While Not EOF(1) ' Loop until end of file.
Do While Not EOF(1) 'EOF để kiểm tra xem file đã kết thúc chưa? - Eof Returns if the end of file is reached.
Nó trả về EOF nếu như nó gặp kết thúc một file. - It reads a word from the file and returns EOF at the end of file.
Nó đọc một từ trong file và trả về EOF ở vị trí kết thúc file. - This error is "unexpected end of file".
Lần này có error rõ hơn: “Unexpected end of data. - fseek(in, 0, SEEK_END); // seek to end of file
fseek(file,0,SEEK_END); //dời về cuối tập tin;